//定义变量
@width: 1250px;
.grid_three_container {
    width: 100%;
    margin: -31px auto 0;
    .grid_three_contant {
        width: 100%;
        height: 330px;
        background: #00BFF3;
        .contant-center {
            width: @width;
            margin: 0 auto;
            h1 {
                padding: 100px 0 0;
                font-size: 46px;
                color: white;
            }
            P {
                color: white;
                font-size: 14px;
                padding: 0 10px;
            }
            .search-box {
                position: relative;
                top: -56px;
                width: 500px;
                height: 40px;
                float: right;
                right: -30px;
                .search-input {
                    width: 450px;
                    height: 27px;
                    line-height: 27px;
                    padding: 5px 8px 5px 10px;
                    border: 1px solid white;
                }
                .search-button {
                    position: absolute;
                    top: 0;
                    right: 30px;
                    width: 80px;
                    height: 27px;
                    line-height: 0;
                    padding: 20px 0;
                    background: url("../img/grid_three_search.png") no-repeat 16px -28px;
                    cursor: pointer;
                    border: 0 none;
                }
            }
        }
    }
    .grid_three_nav {
        width: 100%;
        height: 70px;
        background: #00AEE0;
        .nav-center {
            width: @width;
            height: 70px;
            margin: 0 auto;
            .nav-wrap {
                margin: 0;
                padding: 0;
                list-style: none;
                float: left;
                li {
                    display: inline-block;
                    position: relative;
                    margin: 0 20px;
                    a {
                        color: #69D6F9;
                        cursor: pointer;
                        text-decoration: none;
                        display: block;
                        font-size: 14px;
                        padding: 26px 5px;
                    }
                    .current {
                        color: white;
                        border-bottom: 2px solid white;
                    }
                }
                li:first-child {
                    margin: 0;
                }
            }
        }
    }
    .cool {
        margin: 30px auto 100px;
        width: 100%;
        .grid_three_grid {
            width: @width;
            max-width: @width;
            margin: 0 auto;
            position: relative;
            ul {
                margin: 0;
                padding: 0;
                overflow: hidden;
                list-style: none;
                .group{
                    float: left;
                    width: 416px;
                    position: relative;
                    padding-bottom: 30px;
                    .item {
                        margin: auto 10px;
                        background-color: white;
                        box-shadow: 0 1px 1px rgba(0,0,0,0.15);
                        overflow: hidden;
                        position: relative;
                        .thum {
                            text-align: center;
                            width: 100%;
                            height:100%;
                            overflow: hidden;
                            position: relative;
                            .ico {
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                width: 120px;
                                height: 40px;
                                margin: -16px 0 0 -60px;
                                z-index: 20;
                                background: black;
                                display: none;
                            }
                            .mask {
                                position: absolute;
                                left: 0;
                                top: 0;
                                height: 100%;
                                width: 100%;
                                background-color: black;
                                z-index: 10;
                                opacity: 0;
                                transition: opacity 0.2s;
                            }
                        }
                        .meta {
                            padding: 10px 5px;
                            .title h1 {
                                font-weight: normal;
                                line-height: 1.2;
                                a {
                                    color: #9194A0;
                                    font-size: 24px;
                                    display: block;
                                    height: 24px;
                                    line-height: 24px;
                                    text-align: center;
                                    text-decoration: none;
                                }
                            }
                        }
                        .on {
                            border-top: 1px solid #f2f2f2;
                            padding: 10px 5px;
                            color: #9999A5;
                            p {
                                font-size: 14px;
                                line-height: 20px;
                                margin-left: 45px;
                            }
                        }
                        .extra {
                            height: 70px;
                            background: #F5F5F5;
                            .comment a {
                                color: #CFCFD7;
                                text-decoration: none;
                                display: block;
                                i {
                                    position: relative;
                                    top: 4px;
                                    display: inline-block;
                                    width: 20px;
                                    height: 20px;
                                    margin-left: 50px;
                                    background: url(../img/gridThree_small.png)no-repeat -12px -6px;
                                }
                                span {
                                    line-height: 70px;
                                }
                            }
                        }
                        .circle {
                            position: absolute;
                            bottom: 50px;
                            right: 30px;
                            width: 40px;
                            height: 40px;
                            background: #252525;
                            border: 1px solid #252525;
                            border-radius: 100%;
                            i {
                                width: 40px;
                                height: 40px;
                                display: block;
                                margin-top: 10px;
                                margin-left: 10px;
                                background: url("../img/grid_three_arr.png") no-repeat -11px -15px;
                            }
                        }
                    }
                    &:hover .thum .ico {
                        display: block;
                    }
                    &:hover .thum .mask {
                        opacity: 0.5;
                    }
                    &:hover .meta .title h1 a {
                        color: #55D2F7;
                    }
                    &:hover .extra {
                        color: #272729;
                        background: #252525;
                    }
                    &:hover .circle {
                        background: #55D2F7;
                        border-color: #00BEF2;
                    }
                }
            }
        }
    }
    //下一页
    .navigation {
        width: 100%;
        height: 50px;
        margin: 0 auto;
        position: relative;
        margin-bottom: 30px;
        .navigation-left {
            position: absolute;
            top: 0;
            left: 0;
            width: 200px;
            height: 50px;
            background: #F5F5F5;
            text-align: center;
            line-height: 50px;
            color: #999;
            cursor: pointer;
        }
        .navigation-center {
            height: 50px;
            background: white;
            margin: 0 200px;
            text-align: center;
            ul {
                margin: 0;
                padding: 0;
                list-style: none;
                text-align: center;
                margin-left: 300px;
                li {
                    float: left;
                    position: relative;
                    padding: 5px 10px;
                    margin:0 5px;
                    cursor: pointer;
                    color:#999; 
                    border-top: 2px solid #fff;
                    &:hover:not(.current):not(.nocurrent) {
                        border-top: 2px solid #00AEE0;
                        color: #00AEE0;
                    }
                }
                .current {
                    border-top: 2px solid #00AEE0;
                    color: #00AEE0;
                    cursor: default;
                }
                .nocurrent {
                    border-top: none;
                    cursor: default;
                }
            }
        }
        .navigation-right {
            position: absolute;
            top: 0;
            right: 0;
            width: 200px;
            height: 50px;
            background: #00AEE0;
            text-align: center;
            color: white;
            line-height: 50px;
            cursor: pointer;
        }
    }
    i {
        width: 15px;
        height: 15px;
        display: inline-block;
    }
    #prev {
        background: url("../img/grid_three_pages.png") no-repeat 0 -5px;
    }
    #next {
        background: url("../img/grid_three_pages.png") no-repeat -14px -4px;
    }
    
    @media only screen and (min-width: 1024px )and( max-width: 1259px){
        .grid_three_nav{
            .nav-center{
                width: auto;
                margin:0 auto;
            }
        }
    .grid_three_contant {
        .contant-center {
            width: auto;
        }
    }
    .cool{
        .grid_three_grid{
            width:1059px;
            margin: 0 auto;
                ul{
                    .group{
                        width:351px;
                    }
                    
                }
        }
    }
}
    
}
//响应式
//平板


@media only screen and (max-width: 1024px) {
    body{
        overflow-x: hidden;
    }
    .grid_three_container {
        .grid_three_contant {
            .contant-center {
                width: 100%;
                text-align: center;
                .search-box {
                    float: none;
                    display: none;
                }
            }
        }
        .grid_three_nav {
            display: none;
        }
        .cool {
            .grid_three_grid {
                width: 832px;
                margin: 0 auto;
                ul{
                    li{
                        width: 416px;
                    }
                }
            }
        }
        .navigation {
            .navigation-center {
                display: none;
            }
        }
    }
}

//手机
@media only screen and (max-width: 768px) {
    body{
        overflow-x: hidden;
    }
    .grid_three_container {
        .cool {
            .grid_three_grid {
                width: 417px;
                margin: 0 auto;
                ul{
                    li{
                        width: 416px;
                    }
                }
                    
            }
        }
    }
}
